const state = () => ({
  tokenInfo: null,
});

const getters = {};

const actions = {};

const mutations = {
  removeToken: (state) => {
    state.tokenInfo = null;
  },
  setToken: (state, tokenInfo) => {
    state.tokenInfo = tokenInfo;
  },
};

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations,
};
